package ModelLayer;

import java.util.ArrayList;

public class Customer extends Person 
{
	private String customerType;
	private String companyName;
	private int CVRnr;
	private ArrayList<SalesOrder> salesOrder;


//Constructor which returns the superclass values
public Customer()
{
	super("","",0,"",0,"");
}

//Constructor which takes; name, adress, zipcode, city, phonenumber, email, customertype, companyname and cvrnr as a parameter
public Customer(String name, String adress, int zipCode, String city, int phoneNumber, String email, String customerType, String companyName, int CVRnr)
{
	super(name, adress, zipCode, city, phoneNumber, email);
	
	this.customerType = customerType;
	this.companyName = companyName;
	this.CVRnr = CVRnr;
}

//Returns customer type
public String getCustomerType() 
{
	return customerType;
}

//Sets CustomerType
public void setCustomerType(String customerType) 
{
	this.customerType = customerType;
}

//Returns company name
public String getCompanyName() 
{
	return companyName;
}

//Sets the company name
public void setCompanyName(String companyName) 
{
	this.companyName = companyName;
}

//Returns cvrnr
public int getCvrNr()
{
	return CVRnr;
}

//Sets the cvr nr
public void setCvrNr(int cVRnr)
{
	CVRnr = cVRnr;
}

//Returns sales order
public ArrayList<SalesOrder> getSalesOrder() 
{
	return salesOrder;
}

//Finds all salesorders on a customer
public void addSalesOrder(ArrayList<SalesOrder> findAllSalesOrdersOnCustomer) 
{
	this.salesOrder = findAllSalesOrdersOnCustomer;
}

}

